class Animal {
    move(distanceInMeters:number = 0){
        console.log(`移动了${distanceInMeters}`);
    }
}

class Dog extends Animal {
    bark(){
        console.log("wang wang");
        
    }
}

const dog = new Dog()
dog.bark()
dog.move(100)
dog.bark()